package LambdaProMax;

public class LambdaProMaxDemo {

	public static void main(String[] args) {
		useMyString((s,x,y)-> s.substring(x,y));
		
		useMyString(String::substring);

	}

	public static void useMyString(MyString ms) {
		System.out.println(ms.mySubString("aaaannnnbbbb", 0, 11));
	}
}
